<HTML>
<HEAD>
<meta NAME="author" CONTENT="Judit Vasko-Szedlar">
<link REL="stylesheet" TYPE="text/css" HREF="../../../marvinmanuals.css" TITLE="Style">

<TITLE>MarvinSpace demo</TITLE>

</HEAD>
<BODY>

<H1>MarvinSpace</H1>

<p>The available GUI components of MarvinSpace are demonstrated in this example.</p>

<h3>1. Basic canvas without GUI elements</h3>
<center>
<script language="JavaScript" src="../../../marvin.js"></script>
<script language="JavaScript">
<!--
mspace_name="MSpaceApplet";
mspace_begin(mspace_name,"../../..",400,400);
mspace_param("progressbar","true");
mspace_param("selectionpanel","false");
mspace_param("molecule","http://www.chemaxon.com/marvinspace/data/1AID.pdb");
mspace_end();
//-->
</script>
</center>

<blockquote>
    <p>Without the gui, we can only rotate (left mouse drag), zoom (middle mouse drag)
        and shift (right mouse drag) the view, and use applet parameters and api to perform actions.
    </p>
</blockquote>

<h3>2. Menubar</h3>
<center>
<script language="JavaScript" src="../../../marvin.js"></script>
<script language="JavaScript">
<!--
mspace_name="MSpaceApplet";
mspace_begin(mspace_name,"../../..",400,400);
mspace_param("progressbar","true");
mspace_param("menubar","true");
mspace_param("selectionpanel","false");
mspace_param("molecule","http://www.chemaxon.com/marvinspace/data/1AID.pdb");
mspace_end();
//-->
</script>

</center>

<blockquote>
    <p>Many functions are available from the Menubar. Use the following applet parameter to enable:</p>
    <pre>
        &lt;param name="menubar" value="true"&gt;
    </pre>
</blockquote>

<h3>3. Popup Menu</h3>
<center>
<script language="JavaScript" src="../../../marvin.js"></script>
<script language="JavaScript">
<!--
mspace_name="MSpaceApplet";
mspace_begin(mspace_name,"../../..",400,400);
mspace_param("progressbar","true");
mspace_param("menubar","true");
mspace_param("popupmenu","true");
mspace_param("selectionpanel","false");
mspace_param("molecule","http://www.chemaxon.com/marvinspace/data/1AID.pdb");
mspace_end();
//-->
</script>
</center>

<blockquote>
    <p>&nbsp;</p>
    <pre>
        &lt;param name="popupmenu" value="true"&gt;
    </pre>

</blockquote>

<h3>4. Selection Panel</h3>
<center>
<script language="JavaScript" src="../../../marvin.js"></script>
<script language="JavaScript">
<!--
mspace_name="MSpaceApplet";
mspace_begin(mspace_name,"../../..",800,400);
mspace_param("progressbar","true");
mspace_param("menubar","true");
mspace_param("popupmenu","true");
mspace_param("molecule","http://www.chemaxon.com/marvinspace/data/1AID.pdb");
mspace_end();
//-->
</script>
</center>

<blockquote>
    <p>The Selection Panel is enabled by default. The parameter should only be used to disable it.</p>
    <pre>
        &lt;param name="selectionpanel" value="false"&gt;
    </pre>

</blockquote>

<h3>5. Toolbar</h3>
<center>
<script language="JavaScript" src="../../../marvin.js"></script>
<script language="JavaScript">
<!--
mspace_name="MSpaceApplet";
mspace_begin(mspace_name,"../../..",800,400);
mspace_param("progressbar","true");
mspace_param("menubar","true");
mspace_param("toolbar","true");
mspace_param("popupmenu","true");
mspace_param("molecule","http://www.chemaxon.com/marvinspace/data/1AID.pdb");
mspace_end();
//-->
</script>
</center>

<blockquote>
    <p>A new jar file, <code>jextexp.jar</code> must be put into the archive tag to enable the toolbar.
    Note, that to be able to load multiple applets inside one web page, the applet tags have to be the same,
    because Java does not let to load native libraries by separate classloaders.
    That's why we used <code>jextexp.jar</code> in all applets on this page, however it is only required by the last one.</p>     
    <pre>
        &lt;param name="toolbar" value="true"&gt;
    </pre>

</blockquote>


<center><div class="lenia">&nbsp;</div></center>
<p>
<p>
<center>
<font size="-2" face="helvetica">

Copyright &copy; 2004-2010
<a href="http://www.chemaxon.com">ChemAxon Ltd.</a>
&nbsp;&nbsp;&nbsp;All rights reserved.
</font>
</center>

</BODY>
</HTML>

